﻿@using Urs.Core
@using Urs.Data.Domain.Users
@using  Urs.Services.Users
@inject IWorkContext workContext
@{
    var currentUser = workContext.CurrentUser;
}

<div class="layui-layout layui-layout-admin">
    <div class="layui-header header">
        <div class="layui-logo layuimini-logo" layuimini-href="@Url.Action("Console")">
            <span>系统管理端</span>
        </div>
        <!-- 头部区域 -->
        <div class=" layuimini-header-content">
            <a>
                <div class="layuimini-tool"><i title="展开" class="layui-icon layui-icon-shrink-right" data-side-fold="1"></i></div>
            </a>
            <ul class="layui-nav layui-layout-left layuimini-header-menu layuimini-menu-header-pc layuimini-pc-show">
                <li class="layui-nav-item">
                    <a layuimini-href="@Url.Action("List","Product")">商品管理</a>
                </li>
                <li class="layui-nav-item">
                    <a layuimini-href="@Url.Action("List","Order")">订单列表</a>
                </li>
                <li class="layui-nav-item">
                    <a lay-href="@Url.Action("ShipmentList","Order")">配送信息</a>
                </li>
                <li class="layui-nav-item" lay-unselect>
                    <a layuimini="javascript:;" data-refresh="刷新">
                        <i class="layui-icon layui-icon-refresh-3"></i>
                    </a>
                </li>
            </ul>
        </div>
        <ul class="layui-nav layui-layout-right" lay-filter="layadmin-layout-right">
            <li class="layui-nav-item mobile layui-hide-xs" lay-unselect>
                <a href="javascript:;" data-check-screen="full">
                    <i class="layui-icon layui-icon-screen-full"></i>
                </a>
            </li>
            <li class="layui-nav-item" lay-unselect>
                <a href="javascript:;">
                    <cite>@(currentUser?.Realname)</cite>
                </a>
                <dl class="layui-nav-child">
                    <dd><a layuimini-href="@Url.Action("EditInfo","User")">基本资料</a></dd>
                    <dd><a layuimini-href="@Url.Action("EditPassword","User")">修改密码</a></dd>
                    <hr>
                    <dd style="text-align: center;"><a href="@Url.Action("Logout","Login")">退出</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item layui-hide-xs" lay-unselect="">
                <a href="javascript:;"><i class="layui-icon layui-icon-more-vertical"></i></a>
            </li>
        </ul>
    </div>
    @await Html.PartialAsync("Menu")
    <!--手机端遮罩层-->
    <div class="layuimini-make"></div>

    <!-- 移动导航 -->
    <div class="layuimini-site-mobile"><i class="layui-icon"></i></div>

    <div class="layui-body">
        <div class="layuimini-tab layui-tab-rollTool layui-tab" lay-filter="layuiminiTab" lay-allowclose="true">
            <ul class="layui-tab-title">
                <li class="layui-this" id="layuiminiHomeTabId" lay-id="@Url.Action("Console"))"><span class="layuimini-tab-active"></span><span class="disable-close">首页</span></li>
            </ul>
            <div class="layui-tab-control">
                <li class="layuimini-tab-roll-left layui-icon layui-icon-left"></li>
                <li class="layuimini-tab-roll-right layui-icon layui-icon-right"></li>
                <li class="layui-tab-tool layui-icon layui-icon-down">
                    <ul class="layui-nav close-box">
                        <li class="layui-nav-item">
                            <a href="javascript:;"><span class="layui-nav-more"></span></a>
                            <dl class="layui-nav-child">
                                <dd><a href="javascript:;" layuimini-tab-close="current">关 闭 当 前</a></dd>
                                <dd><a href="javascript:;" layuimini-tab-close="other">关 闭 其 他</a></dd>
                                <dd><a href="javascript:;" layuimini-tab-close="all">关 闭 全 部</a></dd>
                            </dl>
                        </li>
                    </ul>
                </li>
            </div>
            <div class="layui-tab-content">
                <div id="layuiminiHomeTabIframe" class="layui-tab-item layui-show">
                    <iframe src="@Url.Action("Console")" width="100%" height="100%" frameborder="no" border="0" marginwidth="0" marginheight="0"></iframe>
                </div>
            </div>
        </div>
    </div>
</div>

